<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@include file="template/header.jsp"%>
<center>
	<p>
		<b>page d'ajout d'une réclamation</b>
	</p>
</center>
<form:form method="POST" commandName="reclamation">
	<form:errors path="*" cssClass="errorblock" element="div" />
	<table cellspacing="15">
		<tr>
			<td ><b>Référence :</b></td>
			<td ><form:input path="ref" /></td>
			<!-- <td><form:errors path="ref" cssClass="error" /></td> -->
		</tr>
		<tr>
			<td><b>Type de la réclamation :</b></td>
			<td ><form:select path="type">
					<form:option value="NONE" label="Type" />
					<form:option value="Ponctualité">Ponctualité</form:option>
					<form:option value="service">Service</form:option>
					<form:option value="Offre">Offre</form:option>
					<optgroup label="Information">
						<form:option value="Information,Dans le Tram">Dans le tram</form:option>
						<form:option value="Information, En Station">En Station</form:option>
						<form:option value="Information, Allo Tram">Allo Tram</form:option>
						<form:option value="Information,tram-way.ma"> tram-way.ma</form:option>
					</optgroup>
					<optgroup label="Attitude">
						<form:option value="Attitude, Agent comerciaux">Agent comerciaux</form:option>
						<form:option value="Attitude, Contrôleurs">Contrôleurs</form:option>
						<form:option value="Attitude, Conducteurs">Conducteurs</form:option>
						<form:option value="Attitude, Vendeurs en kiosques">Vendeurs en kiosques</form:option>
					</optgroup>
					<optgroup label="Confort">
						<form:option value=" Confort en station">En station</form:option>
						<form:option value="Confort dans le Tram">Dans le Tram</form:option>
					</optgroup>
					<optgroup label="Propreté">
						<form:option value="Proprete En station">En station</form:option>
						<form:option value="Proprete Dans le Tram">Dans le Tram</form:option>
						<form:option value="proprete en agence">En agence</form:option>
					</optgroup>
					<optgroup label="Nuisance Sonore">
						<form:option value="Nuisance Sonore,Matériel roullant">Matériel roullant</form:option>
						<form:option value="Nuisance Sonore,En station ">En station</form:option>
						<form:option value="Nuisance Sonore, Dans le Tram">Dans le Tram</form:option>
					</optgroup>
					<optgroup label=" Sécurité">
						<form:option value="Sécurite ,En station">En station</form:option>
						<form:option value="Sécurite ,dans le Tram">dans le Tram</form:option>
					</optgroup>
					<form:option value="Equipement">Equipement</form:option>
					<form:option value="Distribution ">Distribution</form:option>
					<form:option value="autre">autre</form:option>
				</form:select></td>
			<!-- <td><form:input path="type" /></td> -->
			<!-- <td><form:errors path="ref" cssClass="error" /></td> -->
		</tr>
		<tr>
			<td><b>Date de la réclamation :</b></td>
			<td><form:select path="jourRec">
					<form:option value="NONE">Jour</form:option>
					<%
						for (int i = 1; i < 32; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select>
				 <form:select path="moisRec">
					<form:option value="NONE">Mois</form:option>
					<form:options items="${monthsList}"/>
					</form:select>
					 <form:select path="anneRec">
					<form:option value="NONE">Année</form:option>
					<%
						for (int i = 2012; i < 2030; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select>
			</td>
		</tr>
		<tr>
			<td><b>Date de récéption par le département Marketing :</b></td>
			<td><form:select path="receiptMarJour">
					<form:option value="NONE">Jour</form:option>
					<%
						for (int i = 1; i < 32; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select> <form:select path="receiptMarMois">
					<form:option value="NONE">Mois</form:option>
					<form:options items="${monthsList}"/>
				</form:select><form:select path="receiptMarAnne">
					<form:option value="NONE">Année</form:option>
					<%
						for (int i = 2012; i < 2030; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select></td>
		</tr>
		<tr>
			<td><b>Support :</b></td>
			<td><form:select path="support">
					<form:option value="NONE" label="Support" />
					<form:options items="${supportList}" />
				</form:select></td>
		</tr>
		<tr>
			<td><b>Département concerné :</b></td>
			<td><form:select path="dept">
					<form:option value="NONE" label="Département" />
					<form:options items="${deptList}" />
				</form:select></td>
		</tr>
		<tr>
			<td><b>Date de transfert au département concerné</b></td>
			<td><form:select path="jourTrConcernedDept">
					<form:option value="NONE">Jour</form:option>
					<%
						for (int i = 1; i < 32; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select><form:select path="moisTrConcernedDept">
					<form:option value="NONE">Mois</form:option>
					<form:options items="${monthsList}"/>
					</form:select>
					<form:select path="anneTrConcernedDept">
					<form:option value="NONE">Année</form:option>
					<%
						for (int i = 2012; i < 2030; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select>
			</td>
		</tr>
		<tr>
		<td><b>Date retour au département Marketing:</b></td>
			<td> <form:select path="jourBackToMarkDept">
					<form:option value="NONE">Jour</form:option>
					<%
						for (int i = 1; i < 32; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select> <form:select path="moisBackToMarkDept">
					<form:option value="NONE">Mois</form:option>
					<form:options items="${monthsList}"/>
				</form:select> <form:select path="anneBackToMarkDept">
					<form:option value="NONE">Année</form:option>
					<%
						for (int i = 2012; i < 2030; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select>
			</td>
		</tr>
		<tr>
		<td><b>Accepté/non:</b></td>
		<td>
		<form:radiobutton path="accepted" value="true"/>oui
		<form:radiobutton path="accepted" value="false"/>non
		 </td>
		</tr>
		<tr>
		<td><b>Date de réponse</b></td>
		<td> <form:select path="responseJour">
					<form:option value="NONE">Jour</form:option>
					<%
						for (int i = 1; i < 32; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select> <form:select path="responseMois">
					<form:option value="NONE">Mois</form:option>
					<form:options items="${monthsList}"/>
				</form:select> <form:select path="responseAnne">
					<form:option value="NONE">Année</form:option>
					<%
						for (int i = 2012; i < 2030; i++) {
					%>
					<form:option value="<%=i%>"><%=i%></form:option>
					<%
						}
					%>
				</form:select>
		</td>
		</tr>
		<tr>
		<td><b>Réponse donnée</b></td>		
		<td><form:textarea path="response"/></td>
		</tr>
		<tr>
		<td><b>Support de la réponse</b></td>		
		<td><form:select path="responseSupport">
					<form:option value="NONE" label="Support" />
					<form:options items="${responseList}" />
				</form:select>
		</td>
		</tr>
		<tr>
			<td colspan="3">
			<br/>
			<input type="submit" class="common_b blue" /></td>
		</tr>
	</table>
</form:form>
<%@include file="template/footer.jsp"%>